﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Entities
{
    public class CommonFacility : Facilities
    {
        public bool IsUsed { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Robot { get; set; }

        /// <summary>
        /// 默认 0 是充电状态 1是Park点，2是其他可以扩展
        /// </summary>
        public int Type { get; set; }

        [SugarColumn(IsNullable = true)]
        public string AvailabeAgvType { get; set; }


        public override string ToString()
        {
            return $"Id:{Id}, Postion:({XPosition},{YPosition}), IsUsed:{IsUsed} by Robot({Robot}) On Region({Region})";
        }
    }
}
